<?python
    from onlineapidoc.model import (space_status_codes)
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#" py:extends="'../master.kid'">

<head>
    <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
    <title>Online API Doc - Setting for ${space.name}</title>
</head>

<body>  
<h2 py:content="space.name">Name</h2>
<p />
<div>
<form id="form_space_setting" action="/space/space_setting_commit" method="post">
<table>
<tr>
<td width="120"><b>Name</b></td>
<td><input type="text" name="name" size="50" value="$space.name" /></td>
</tr>
<tr>
<td><b>Status</b></td>
<td>
<select name="status">
<option py:for="k,v in space_status_codes.items()"
value="$k"
selected="${(None, '')[k == space.status]}">
${v}
</option>
</select>
</td>
</tr>
<tr>
<td><b>Description</b></td>
<td><textarea rows="4" cols="72" name="description">${space.description}</textarea></td>
</tr>
</table>
<input name="id" type="hidden" value="$space.id" />
<a href="#" onclick="submit('form_space_setting'); return false;">update</a>
<a href="#" onclick="history.back();">back</a>
</form>
</div>
</body>

</html>
